<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2018/8/16  14:53
 */
namespace app\api\controller;

class System extends Base
{
    //检查权限作用域
    protected $beforeActionList = [
        'checkPrimaryScope' => [
            'only' =>[ 'agreement'],
        ],
    ];

    //协议
    public function agreement()
    {
        $agreement =  (new \app\api\logic\System())->agreement();
        return $this->ajaxReturn($agreement);
    }

    //购物协议
    public function protocol(){
        $protocol =  (new \app\api\logic\System())->protocol();
        return $this->ajaxReturn($protocol);
    }

    public function createqrcode()
    {
        $createqrcode =  (new \app\api\logic\System())->createqrcode();
        return $this->ajaxReturn($createqrcode);
    }

}